from django.shortcuts import render

# Create your views here.
from rest_framework.generics import ListAPIView

from heads.models import News
from heads.serializers import HeadListSerializer


class NewsList(ListAPIView):
    serializer_class = HeadListSerializer
    queryset = News.objects.all()
